Defined getNextState

Defined getNextState, seems to be working but more testing will be
required. Added a demo in main which will find all the possible states,
evaluate them, then print out the board evaluation number.