chaos.c - fixed bug involving wrong character in cursor