function remove_from_game (player_id) {

      other_players = other_players.filter(function(player) {
        if (player.player_id == player_id){
          player.game_object.destroy()
        }
        return player.player_id !== player_id
      })

    }
// remove from phaser and from other_players array
remove from phaser and from other_players array
remove from phaser and from other_players array
function remove_from_game (player_id) {
      other_players = other_players.filter(function(player) {
        if (player.player_id == player_id){
          player.game_object.destroy()
        }
        return player.player_id !== player_id
      })
    }
function remove_from_game ( player_id ) { other_players = other_players . filter ( function ( player ) { if ( player . player_id == player_id ) { player . game_object . destroy ( ) } return player . player_id !== player_id } ) }
remove from phaser and from other_players array
remove from phaser and from other_players array