keep characters within screen bounds