Made game mode prefix lowercase
Refactored location code