Changed solution to navigation model instead of executing everything sequentially

ICommand is now an abstract class called Command