Update moves.py

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