Trying to avoid these foods before calling it a night might help you get better quality sleep.