Update BaseGame.py

Fix possible if/while syntax issues and remove possibility of some errors