Improved main, added some corner room functionality.