lots of script optimization, fixes trap and enemy

reworks on trap and enemy make them work as intended now.
All linecasts replaced by Raycasts and put in helper class.
minor changes to menus, new osx build