Changed gameOver algorithm to adapt to checking for a different amount in a row.