Fix IndexOutOfRange Error

Small bug that only happens when all the defences are placed