refactored the client

The client will now stop checking for input ever 2 seconds, is a
terrible memory leak but will allow console interuption.