Moving js class to separate file, adding game finish conditions for draws.