more levels and fixing bug with early ring detection