fixed the ai player direction
read_to_end was moved from ReaderUtil to Reader