#1: Liana leaning added and code refactored for tile collision