                     $scope.$emit('switchToModule', 'shop');
                 }
             }
+
+            // handle random events
+            // TODO: if is a good time/place for an event
+            randy.roll()
         }
         // TODO: else if within range of shop and have money, switch to shop screen module to buy fuel
         else { // end game

        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
            vm.tiles.forEach(function(tile){
                tile.travel();
            });

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

    $scope.$on('encounter', function(args){
        // on random encounter
        console.log('adding encounter:', args);
        // TODO: place marker off screen & add to locations?
    });
}]);

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