Various code sprucing and updates, Begining square building function.