added reward, if printing beep in the terminal can be called reward