You're welcome. I hope you'll see why that worked. At its old location line 77 was overwriting what line 96 does, because player.x equals player.px there (and for y). You want to assign the '@' symbol after player.x is changed, which isn't until after line 89 (for y).