finished assignment

Assignment now works and returns correct number of possible solutions to
the game