Fixed bugs in block functions, shortened function names, added function to make a square