Almost fixed the y coordinates for drawing. Something's still not right, though.