drawing works! algorithm still requires modification, however