Building Squares with Optimal State Complexity in Restricted Active Self-Assembly