added horizontal object check to Enemy