added game.c which defines the functions in the main header file