Parse game commands.