developed the controller a bit
added Square inner class and addPiece method