Code a la Mode - Bugs

I experience seldom non-reproducible timeouts with a bot that is just reading and parsing input and printing a WAIT action. I do not get the expected stderr output in these cases (see replays linked below).

This is the bot code:
http://chat.codingame.com/pastebin/962fb4e2-3149-4efd-982f-1b15818806f4

These are two replays with timeouts: