8 directions version is done