moved stuff out from compiled code to Player, added run/stop/pause/resume, added time offset to main.update