Fixed delete to delete[]

Fixed the program repeatedly crashing when attempting to draw