private void sendUpdates() {
        LinkedList<UpdatePlayer> updates = new LinkedList<UpdatePlayer>();
        LinkedList<AnimatePlayer> anims = new LinkedList<AnimatePlayer>();
        for (HostedConnection each : getClients()) {
            if ((each == null) || (!each.attributeNames().contains(AttributeKey.PLAYER))) {
                continue;
            }
            Player p = each.getAttribute(AttributeKey.PLAYER);
            updates.add(new UpdatePlayer(p.getId(), p.getRotation(), p.getControl().getPhysicsLocation()));
            String lastAnim = each.getAttribute(AttributeKey.ANIMATION);
            if(!p.getAnimation().equalsIgnoreCase(lastAnim)) {
                each.setAttribute(AttributeKey.ANIMATION, p.getAnimation());
                anims.add(new AnimatePlayer(p.getId(),p.getAnimation()));
            }
        }
        for(HostedConnection client : getClients()) {
            for(UpdatePlayer update : updates) {
                client.send(update);
            }
            for(AnimatePlayer anim : anims) {
                client.send(anim);
            }
        }
    }