Refactored classes to make timer and eventloader reusable, fixed pausing, fixed resetting