Update ricerocks.py

improve end of game conditions