adding more code to games and user model and controller