Fixed crate clipping and picking up buttons

Fixed crates clipping through obstacles when picked up and rewrote the
mouse and button picking up scripts. It seems to all work now.