added onmousedown event to allow users to add additional obstacles