Hit detection added