added more debug to game code