Made improvements on performance. Still has trouble with NE diagonal moves