Ray Casting.

Temporary method of ray-casting to determine if an object is selected.
Need to update to a better program structure.