Add missing `break` control structure

The conditions in the `switch/case` statement were falling through unintentionally, producing unexpected results.

[Fixes: #23]
Merge pull request #24 from gMagicScott/bug/23

Add missing `break` control structure