Avoid null pointer exception
Add the method getActions on Card