Improve moves.py
Function is_winner refactored