Edited setblock to most basic form
Added loops to generate surface
Generate based on function