added game_stats.py, refactored and commented code