check for empty method written, not tested
outline of main game loop