correctly mapping player position to his place on the canvas