Sinatra app that incorporates minimax algorithm