Fixed bug in Line constructor where x and y coords are undefined

Must make sure x and y are defined for all shapes. The draw function
won't work if they are undefined.