Adding a move function to the ui