Implementing Terrain collision in Character class