Add game constants and collision check function