Modifying isPlayValid to make game work