Refactored code to use tile data structure.
Line of sight is working.