Program the ghost to move back and forth and program the bat to hide and scream when it touches the ghost.
simple motion, direction and turning, visibility, simple loops, simple events,