added hashmap of endNodes
just started with exception
checks that all squars are colored