Added parameters to mainscreen so that only one mainscreen is needed for
the whole game.