Completed basic logic for game and basic display.