setting up coordinates system via board pattern