switched starfield to unique_ptr