Update adventure.php

Added the ending adventure function to the class and added GAME_END as a viable event