Create Rules.java

Creating a rules class so the main doesn't look so cluttered.