added curses library
 added hasbeam to state
improving output
bugfix