Implemented reading and writing of items and enemies.