add bottom collsion detection(brad fix), window resizing not working