initial level loading, fixed bugs