added move method to move player