fixed bugs, implemented 3 card rule