Modified code to only allow the creation of a single menuLayout object, and gameView object.