refactor nextPos
added downward collission detection