update resources, and update game layout