Change player position handling code.