move Enum to common functions
fix themes tests
improve card flipping