added first test. Refactores Reversi Model class