Added in sight range and fixed bugs

Added in custom sight ranges for monsters and fixed some bugs in the old
line of sight code.