added tests and gameplay logic in models
Merge pull request #22 from nealcpeters/gameplay

added tests and gameplay logic in models
merged with master it works now