Modifying A* for the game
Added button press interface