fixed display bug at start, added random seeding