Added prototype drawsquare function