First few functions for vsechna_policka

Some of them maybe should be somewhere else (main.c, constants,c, maplib.c, etc.)