Fixed the second roll by replacing 'else' with 'else if' condition at line 46.