Adding testing (uses jasmine-node, tests upto declaring a winner