Added new gamerules class for OF2.

Added new gamerules class for OF2.