added level clear check + levels + ending