implements main inputs and game menu and layouts