The game objects should extend the Point2D.Double class.