HW2: Game logic and more test cases

Add game logic module
Add more test cases
Edit and refine previous test cases