Level generation algorithm implementation (WIP)