fixed of by one in drawPixel and added debug stuff