Added constant delta in update function and cleared up code in entities