Moved test code to other file
Made SquaresApp singleton