Added more logic and got bouncing to semi work

Signed-off-by: shrimpboyho <shrimpboyhoftw@gmail.com>