bresenham working partially