started incorporated tile toggle function