When you are able to create one square, more squares will follow. Continuously creating squares will help you to remove the fire and ice blocks that are standing in your way.
Once the fire has been removed, look to make combinations with the same color dot that is stuck in the ice block. This will help you to remove the ice blocks quicker.