added get_type_of_attack() to frontend

and some comments
maybe merge get_type_of_attack() and get_actions()? They are very similiar...
splits attack types in a dict
Adds comments to the types of attack functions
Bugfixes
Adds dict usability to card.py
added more support for dictlike functioning of cards