main, pause and game over menus added, code improvements