Change how class selector works, fix portals and fix boss bugs