refactoring

playerAddDestination is now a function reference and uses an event.data
object.

getting a weird bug where calculating index is failing