Added some constants. Delegated Square's state to BitFlags.