Update bee.lua

Found and fixed a few minor bugs. Made the swapBees function more robust (it now looks for its own empty slot to swap with).