state machine implementation for strdetect
add bstrlib for future work
initial tests for tennis
basic tennis playing