initialize game with input.