is there a replacement for flash to play games that run on flash player
There is no replacement plugin for Flash Player. The replacement is for content providers to migrate their content to some other technology.
Major browser vendors are deprecating Flash Player support. Details specific to each vendor: