updated Box drawing, fixed web mouse position z being NaN