Fixed sprite going out of bounds.
Fixed collision detection issue.