Redefined MainGame to better follow object oriented principles.