Implement drawSquare method