handle case of clicking an occupied cell