                 state.updatePlayerScore(myPeerID, score: score)
                 player.lost()
                 
-                if validToSend(player) {
+                if isValidToSend(player) {
                     sendPlayerLostData(score)
                 }
                 

            occurrence = occurringTimeStep!
        }
        
        let canSend = validToSend(player)
        switch event {
            case .PlayerDidJump:
                player.jump(occurrence)

    }
    
    // MARK: sending data
    private func isValidToSend(player: Player) -> Bool {
        return state.isMultiplayer
            && player.playerNumber == state.myPlayer.playerNumber
            && state.ownPlayerStillPlaying()
