Fix the bug of changeX() in player class.