Update Bowling.java

In toNum() we need to use str.contains("X"), otherwise it breaks on the last frame. For example "XXX" can't be formatted and we get an error.