Adding method to compare level states