Changed updateFPS() to tick(), and changed timeDelta to delta.