implemented command context and added play card command