Made game functions no longer dependent of a constant framerate, and made Obstacles a type again