const in neighbours[] added - relative positions of 8 tiles around any given in array[24*16]
removed checks for just one element in the frontier