Refactor and create an API for #alert

- Prevents window.alert from popping up during testing
Detect and announce 'draws'