added battery and engine objects and logic