function added to prevent someone from clicking an occupied cell