using Restful method card game