Can now take a bean from a jar

Also fixed a bug where it would blow up if you tried to
take a bean from an empty jar.