Fixed bug where resizing leaves residual elements

When the resize button is pressed and reset the stage, the array storing
the locations of blocks before rendering was not cleared, resulting in
residual elements existing where they should not have been. Fixed the bug
by resetting the array every time init_canvas() is called.