The boat code has been moved to its own class.