Fixed an out-of-bounds bug,added loading "screen"