add function to game.h