Added an if-else statement to avoid errors within the getNextDrop()
method.