Better event system

Events are attached to window object.
Refactoring encapsulation
update
Refactoring encapsulation
Modified grid to be cube not a plane
Revert "Modified grid to be cube not a plane"

This reverts commit 874a9a40732d5e764ab7f42aacca43b3ef26b200.
Modified grid from plane to cube
Fixed dialog to be double sided