Another fix to the classes so that the gui cant be accessed if not in
game