new Position(x,y, player.getPosition().getZ() +1);
Your not actually changing the players position plus one, You are just creating a new object of position.
To move the player you would do.
player.moveTo(new Position(x,y, player.getPosition().getZ() +1));
Also make sure you define the x and y variables.