code to move game to top of termial