public static void adjustPostionBasedOnDirection(Client client)
    {
        
        switch (client.getDirection())
        {
        case 0 :
            client.y++;
            break;

        case 1 :
            client.y++;
            client.x--;
            break;

        case 2 :
            client.x--;
            break;

        case 3 :
            client.x--;
            client.y--;
            break;

        case 4 :
            client.y--;
            break;

        case 5 :
            client.y--;
            client.x++;
            break;

        case 6 :
            client.x++;
            break;

        case 7 :
            client.x++;
            client.y++;
            break;
        }
    }