getting tile activating and deactivating working