allow to buy from full chest if there will be enough space

add input into chest after output has been removed
Merge pull request #16 from gipsy-king/fullChests

allow to buy from full chest if there will be enough space