@Override
    public void onServerUpdate(Server apples) {
        if (swag++>80)
        {
            swag = 0;
            for (PlayerOnline P:apples.playerList)
            {
                if (P.x>X-48&&P.x<X+48&&P.y>Y-48&&P.y<Y+48)
                {
                    P.score+=10;
                    apples.sendMessage(Server.SCORE, ByteBuffer.allocate(24).putInt(P.ID).putInt(P.score));
                }
            }
        }
    }