         if (data.fuel >= data.fuelExpense) {
             data.travel();
 
-        // travel ship to optimal screen position
-        if (vm.shipX < vm._getIdealShipPos()){
-            vm.shipX += 1;
-            vm.data.distanceTraveled += 1
-        } else {
-            vm.shipX = vm._getIdealShipPos();
-        }
-
-        // move the tiles
+            // move ship to optimal screen position
+            if (vm.shipX < vm._getIdealShipPos()){
+                vm.shipX += 1;
+                vm.data.distanceTraveled += 1
+            } else {
+                vm.shipX = vm._getIdealShipPos();
+            }
+
+            // move the tiles
             vm.tiles.forEach(function(tile){
                 tile.travel();
             });

    vm._getIdealShipPos = function(){
        return window.innerWidth / 3
    }
}]);

module.exports = angular.module('travel-screen').name;

                console.log('tile added');
            }

            // handle arrival at stations/events
            var shipW = 150;
            for (var loc in data.locations){
                var pos = data.locations[loc];
