Updated the Server to make it Node.js compatible

Made some minor changes to the objects for dealing with online battles.