fixed bug with static memory garbage, added equals op to agent references
added mouse ray to env