Stop monster going off bottom and right

Because the distance is measured from the top left of the monsters they
would sometimes go off the edge of the screen with only 1 pixel
showing. Calculating the height and or width of the monster and adding
that to the distance to prevent it moving off the bottom or the right