moved a couple of functions from game_screen to utils