Finished Tasks

- Fixed bugs.
- Added optimization through threads.
- Added support for 3 side card.