re-optimize timer 0 prediction logic (It stays safe as int in some functions)