added menu system and multiple screens

Added mutable variable to switch which function generates the screen,
and wrote a function for generating a menu.
We now check for a win condition.
Added connectedness to win condition.