Added a test code to test the game