Improved Code and Performance

The code now is more readable and improved.
There is no wait of animation completed anymore.
The game now is smooth.