Wrote the base of the game framework