Update and rename GOAlogic.js to gameLogic.js

Changes made to the game to as per suggestions of grader to being the game structure closer to the API,and new functions added for getRiddles, getExampleGame. Bugs fixed as a result of unit testing.