Hi.

Create a method that updates the position of x and y. After doing so, call it in the player class.

Hope I helped.