Basic function to check and uncheck cells