problem with kbhit, it doesn't exist in linux