Added wave pattern for enemies using Cos