Made a fix to the line of sight algo