Completed Location and LocationGenerator classes and implemented them in MainWindow