Could you be more specific? What is the program doing incorrectly? How is tiles.get(<int>).collision determined?