Update game.py for Python 3.x

Uses integer division throughout and replaces xrange() with range().