Replaced array() with []
Fixed entity physics