Removed incorrect color updates
Modified timer so it's independent of frame rate