You work with QUADS but the default beginShape() kind is TRIANGLES.
Use beginShape(QUADS); in your Waves' display() method.
Use beginShape(QUADS); in your Waves' display() method.