fixed bug where coin could go outside box