fixing the piece animation

and adding comments