fix missing terminating-null
move IR commands to game.c
move command_t to game.h