Updated engine-code, added fps regulation