added region code and finished game code