Added code to handle json in ViewController. Added custom init method to handle creating json squares.