Fix undefined word bug

Also add message to say word when time runs out.