code for checking to see if user can change rules or squares