Logic Implementation - state.java

Some classes and the logic is not finished yet