animations modifying renderstate in gamerender to allow playerclicks. stateChanges modified to accept the logic to fire animations. added animations.js to scripts