Fixed a couple of memory overruns
Fixed use of unallocated event struct in WaitEvent
Initilized cursor state
Added success return value on render_look_message
Fixed array bounds issue when looking outside the map section