implemented waves and levels