unit tests for game.js and shared.js

Used tiny test for testing game.js and shared.js