Wave mechanism implemented + mirror bugs fixed