code for flip cards game