add validation for models and tests
added testing
Merge branch 'game_logic'