"check engine" light and "battery" light are on at the same time

Thank you for your note and sorry for the confusion as I am not good at the tech words. Actually, I have just check and found a post that is similar to mine: “aturner13 January 2008 Report
When I was driving and turning a corner, my car just stopped and the battery light came on.I had the battery and altrenator check out and it was fine!What else could be the problem for car to shut off?Thanks”. BustedKnuckles January 2008 Report
The battery light will always go on when the engine dies. This is because the alternator is not turning, and the battery is not being charged. If the light goes back out after the engine is restarted, then there is no problem wit the charging system. Another thought. Is your battery securely tied down? I’ve seen a lot of people with older cars and batteries flopping around, causing problems. Hopefully, yours is not one of them." I thnik BusterKnuckles’s comment is very helpful to me, but he does not say exactly what the problem is. My car problem: The car just got stuck when I tried to turn, and it will not move, and so i had to turn off the engine. Later on, everything was fine when I restarted the car. Thanks.