Play Cock-A-Doodle-Do (Java)