Fixed map generation

Fixed the bug with map generation. Verified that games progress
correctly now. Updated javadocs.