Implementation of beam selection
Fixes 3D rendering, ish
Lots of cool things