renamed controller to main
added logic and test to handle bad entry for game type