Ruby: Draw a square and a triangle in console