Added more Bresenham-code and a bugfix for AI