fixed code to add games as a custom post type