fixed the function randomizeBomb