Moved input code out of game1 class