Added some function definitions

Added a bunch of functions that can be called by the users and admins.
Added file for game itself.