FINISHED AND WORKING FOR SQUARES