Added entity and map collision implementation.