added splash logic and playSound function (distancebased volume)
added splash logic and playSound function (distancebased volume)