refactored from game to portal. activities aded.still needs to bugfix.