@Override
    public void update(GameContainer container, int delta) throws SlickException
    {
        Input input = container.getInput();
        player1.move(input, walls, delta);
        if (input.isKeyDown(Input.KEY_ENTER))
        {
            SendText();
        }
        send(player1.getUpdate());
        
        for(int i = 0; i < OtherPlayers.size(); i++){
            PlayerUpdate player2 = ((PlayerUpdate)OtherPlayers.get(i));
            if(player2.Sprite != null) {
                player2.Sprite.update(delta);
            }
        }
    }