fix if/elif statement in game loop