added exploded square state to make code better