       })
     
     moveTo: (location) ->
+      console.log(location)
       console.log("current position", this.position, "new position", location.position, "distance travelled", distanceTravelled(this.position, location.position) + 'km')
+      location.travelExpense = parseInt((distanceTravelled(this.position, location.position)*0.6)/10)
       @position = location.position
+      @playerAt = location
       @playerMarker.setPosition(new google.maps.LatLng(location.position.lat, location.position.lng))
       updateMarkers()
+      $('#takePic').show()
+      newStats = @stats
+      newStats.workingCapital -= mark.playerAt.travelExpense
+      @updateStats(newStats)
 
     updateStats: (stats) ->
       @stats = stats

    constructor: (@position, @name, @data, @icon) ->
      @marker
      @value

    addTo: (map) ->
      if @icon


      marker.addListener 'mouseover', ->
        $('#infoOverlay img').attr 'src', self.data.img
        $('#infoOverlay #title').text self.data.title
        $('#infoOverlay #description').text self.data.description
        $('#infoOverlay #position').text 'Distance away ' + parseInt(distanceTravelled(mark.position, self.position)) + 'km'
        $('#infoOverlay #value').text 'Potential Revenue $' + self.value
        $('#infoOverlay #travelExpense').text 'Travel Expense $' + parseInt((distanceTravelled(mark.position, self.position)*0.6)/10)
        @value = self.value

  class player extends location
    constructor: (@position, @name, @data, @icon, @stats) ->
      super(@position, @name, @data, @icon)
      @playerMarker
      @inventory = []

    initTo: (map) ->
      @playerMarker = new google.maps.Marker({
