West Ham boss David Moyes admits his side's defensive errors proved costly as they twice threw away two-goal leads to draw 3-3 with Brighton.