added test to ensure stalemate is detected