The problem was that it was still spinning, even on other numbers, so I fixed it with a "if else" command.