SDL is now implemented with the simulation loop