Better version of board recognition, added board pattern