end of animatedbox and finish game/ fixing random index without repeatting
merge