Incorporating PHP sessions into gamify.class.php