fixed npe
Started implementation of possible shapes window