added support for every direction in Bresenham line rendering algorithm