Kennedy tried to get organized crime to take out Castro and Castro found out about it. Castro hated Kennedy because of the Bay of Pigs and the Cuban Missile Crisis. Oswald visited Cuba just prior to the assasination. Certainly Castro wasn't grieving when Kennedy got shot.
Castro was denied a visa to Cuba. He did not visit the island. He did visit the embassy in Mexico city.